package com.allesblinkt.mucom.common;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Date;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

/**
 * @author mys
 *
 */
@XStreamAlias("content_item")
public class ContentItem {

	@XStreamOmitField
	private File file;

	private double time;

	private int hashId;
	
	private String localName = "mucom-file";


	public ContentItem() {
		setTime(System.currentTimeMillis());

	}
	

	/**
	 * @param file the file to set
	 */
	public void setFile(File file) {
		this.file = file;
	}

	/**
	 * @return the file
	 */
	public File getFile() {
		return file;
	}

	/**
	 * @param hashId the hashId to set
	 */
	public void setHashId(int hashId) {
		this.hashId = hashId;
	}

	/**
	 * @return the hashId
	 */
	public int getHashId() {
		return hashId;
	}


	/**
	 * @param time the time to set
	 */
	public void setTime(double time) {
		this.time = time;
	}


	/**
	 * @return the time
	 */
	public double getTime() {
		return time;
	}


	/**
	 * @param localName the localName to set
	 */
	public void setLocalName(String localName) {
		this.localName = localName;
	}


	/**
	 * @return the localName
	 */
	public String getLocalName() {
		return localName;
	}



}
